// 例子48

// profile.js
{
    {
        export var firstName = 'Michael';
        export var lastName = 'Jackson';
        export var year = 1958;
        export function multiply(x, y) {
            return x * y;
        };
        export class Point {
            constructor(x, y) {
                this.x = x;
                this.y = y;
            }
        }
    }

    {
        // 或者写成
        var firstName = 'Michael';
        var lastName = 'Jackson';
        var year = 1958;

        function multiply(x, y) {
            return x * y;
        }
        class Point {
            constructor(x, y) {
                this.x = x;
                this.y = y;
            }
        }

        export {
            firstName,
            lastName,
            year,
            mul as multiply,
            Point
        };
    }
}

console.log('----------------------------------');

{
    // export-default.js
    export default function () {
        console.log('foo');
    }
}